//
//  GKZYChatDetailController.m
//  GKZYAid
//
//  Created by lanou3g on 16/3/14.
//  Copyright © 2016年 GKZYAid. All rights reserved.
//

#import "GKZYChatDetailController.h"
#import "GKZYExpertLineListController.h"
#import "GKZYRegisteredController.h"

@interface GKZYChatDetailController ()

@end

@implementation GKZYChatDetailController

- (void)viewDidLoad {
    [super viewDidLoad];
    self.tabBarController.tabBar.hidden = YES;
    //背景颜色:
    //self.conversationMessageCollectionView.backgroundColor = [UIColor yellowColor];
    self.navigationItem.title = self.titleName;
    
    self.navigationItem.rightBarButtonItem = [[UIBarButtonItem alloc]initWithTitle:@"退出" style:UIBarButtonItemStylePlain target:self action:@selector(rightAction)];


}

- (void)rightAction{
    
    GKZYRegisteredController *registVC = [GKZYRegisteredController new];
    [self.navigationController pushViewController:registVC animated:YES];
    
}


- (void)willDisplayMessageCell:(RCMessageBaseCell *)cell atIndexPath:(NSIndexPath *)indexPath{
    
    if ([cell isMemberOfClass:[RCTextMessageCell class]]) {
        
        RCTextMessageCell *testMessageCell = (RCTextMessageCell *)cell;
        UILabel *testMessageLabel = (UILabel *)testMessageCell.textLabel;
        testMessageLabel.textColor = [UIColor redColor];
    }
}



- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];

}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
